package com.xbongbong.workflow.pojo;

import lombok.Data;

import java.util.List;

/**
 * @author chenpeng
 * @version 1.0
 * @date 2021-05-10 14:00
 * @description 节点id, 获取到的数据id
 */
@Data
public class FlowData {
    
    /**
     * 表单id
     */
    private Long formId;
    
    /**
     * 应用id
     */
    private Long appId;
    
    /**
     * 菜单id
     */
    private Long menuId;
    
    /**
     * 触发数据业务标识，1saas，2paas
     * @see com.xbongbong.pro.enums.SaasMarkEnum
     */
    private Integer saasMark;
    
    /**
     * 触发数据业务类型
     */
    private Integer businessType;
    
    /**
     * 触发数据id
     */
    private List<Long> ids;

    /**
     * 子表单数据id
     */
    private List<Long> subDataIdIn;

    public FlowData() {
    }

    public FlowData(Long formId, Long appId, Long menuId, Integer saasMark, Integer businessType, List<Long> ids, List<Long> subDataIdIn) {
        this.formId = formId;
        this.appId = appId;
        this.menuId = menuId;
        this.saasMark = saasMark;
        this.businessType = businessType;
        this.ids = ids;
        this.subDataIdIn = subDataIdIn;
    }
}
